package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbCities;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.io.Serializable;

/**
 * 城市业务对象 wb_cities
 *
 * @author Lion Li
 * @date 2024-05-28
 */
@Data
@AutoMapper(target = WbCities.class, reverseConvertGenerate = false)
public class WbCitiesBo implements Serializable {

    /**
     * 城市id
     */
    @NotNull(message = "城市id不能为空", groups = { EditGroup.class })
    private Long cityId;



    /**
     * 城市名称
     */
    @NotBlank(message = "城市名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cityName;

    /**
     * 所属省份
     */
    @NotNull(message = "所属省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long provinceId;


    /**
     * 邮政编码
     */
    private String zipCode;;


}
